import scrapy
class mingyanSpider(scrapy.Spider):
    name = "quotes"
    start_urls = [
        'http://lab.scrapyd.cn/',
    ]

    def parse(self,response):
        for quote01 in response.css('div.quote'):
            yield {
                '内容': quote01.css('span.text::text').extract_first(),
                '作者': quote01.xpath('span/small/text()').extract_first(),
            }
        next_page = response.css('li.next a::attr("href")').extract_first()
        if next_page is not None:
            yield scrapy.Request(next_page,self.parse)